#ifndef __MATRIX_KEYS_H__
#define __MATRIX_KEYS_H__

#include "Config.h"

// column
#define COL1 	P03
#define COL2 	P06
#define COL3 	P07
#define COL4 	P17

#define ROW1 	P34
#define ROW2 	P35
#define ROW3 	P40
#define ROW4 	P41
#define ROW5  P42

#define DOWN	0
#define UP		1

#define ROW_NUM 	5
#define COL_NUM 	4

void MK_init();

u8 MK_is_keydown(u8 row, u8 col);
u8 MK_is_keyup(u8 row, u8 col);

u32 MK_scan();

extern void MK_on_keydown(u8 row, u8 col);
extern void MK_on_keyup(u8 row, u8 col);

#endif